package com.example.zwl.dao;

import com.example.zwl.pojo.cource;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;

@Mapper
@Repository
public interface Courcedao {

    public Collection<cource>get();
//    public static Map<Integer, cource>gra;
//    static {
//        gra=new HashMap<Integer, cource>();
//        gra.put(1,new cource(1,"语文","阿文"));
//        gra.put(2,new cource(2,"数学","啊菜"));
//        gra.put(3,new cource(3,"英语","啊格"));
//        gra.put(4,new cource(4,"历史","啊猫"));
//        gra.put(5,new cource(5,"政治","啊狗"));
//    }
//    public Collection<cource>get(){
//        return gra.values();
//    }
//    public void addone(cource stu){
//        gra.put(stu.getCourceID(),stu);
//    }
}
